+2007-09-08 Matthias Clasen <mclasen@redhat.com>
+
+ * io-ani.c: Fix some possible crashes. (#468832, Michal Luczaj)
+
2007-09-07 Matthias Clasen <mclasen@redhat.com>
* io-tga.c (gdk_pixbuf__tga_stop_load): Handle pbuf
_("Malformed chunk in animation"));
return FALSE;
}
+ if (!context->animation)
+ {
+ g_set_error (error,
+ GDK_PIXBUF_ERROR,
+ GDK_PIXBUF_ERROR_CORRUPT_IMAGE,
+ _("Invalid header in animation"));
+ return FALSE;
+ }
+
context->animation->total_time = 0;
for (i = 0; i < context->NumSteps; i++)
{
_("Malformed chunk in animation"));
return FALSE;
}
+ if (!context->animation)
+ {
+ g_set_error (error,
+ GDK_PIXBUF_ERROR,
+ GDK_PIXBUF_ERROR_CORRUPT_IMAGE,
+ _("Invalid header in animation"));
+ return FALSE;
+ }
for (i = 0; i < context->NumSteps; i++)
{
context->animation->sequence[i] = read_int32 (context);
}
else if (context->chunk_id == TAG_INAM)
{
+ if (!context->animation)
+ {
+ g_set_error (error,
+ GDK_PIXBUF_ERROR,
+ GDK_PIXBUF_ERROR_CORRUPT_IMAGE,
+ _("Invalid header in animation"));
+ return FALSE;
+ }
context->title = g_try_malloc (context->chunk_size + 1);
if (!context->title)
{
}
else if (context->chunk_id == TAG_IART)
{
+ if (!context->animation)
+ {
+ g_set_error (error,
+ GDK_PIXBUF_ERROR,
+ GDK_PIXBUF_ERROR_CORRUPT_IMAGE,
+ _("Invalid header in animation"));
+ return FALSE;
+ }
context->author = g_try_malloc (context->chunk_size + 1);
if (!context->author)
{